package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.ao.WareSkuLockAo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author dengchujun
 * @Description
 * @date 2024/6/11
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    @PostMapping("ware/waresku/hasStock")
    public R getSkuHasStock(@RequestBody List<Long> skuIdS);

    @PostMapping("ware/waresku/lock/stock")
    public R lockStock(@RequestBody WareSkuLockAo ao);

}
